package com.sergio.accounting.dto;

import lombok.Data;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class UserProfileUpdateRequest {
    
    @NotBlank(message = "昵称不能为空")
    @Size(max = 20, message = "昵称长度不能超过20个字符")
    private String name;
    
    @Size(max = 50, message = "个性签名长度不能超过50个字符")
    private String desc;
    
    private String avatarText;
    
    private String avatarUrl;
    
    @Size(max = 5, message = "标签数量不能超过5个")
    private List<String> tags;
    
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @Size(max = 11, message = "手机号长度不能超过11位")
    private String phone;
}
